//
//  DCFlag.m
//  CustomPicker
//
//  Created by Joinwe on 16/3/24.
//  Copyright © 2016年 Joinwe. All rights reserved.
//

#import "DCFlag.h"

@implementation DCFlag


- (instancetype)initWithDictionary:(NSDictionary *)dictionary{
    if (self) {
        self.bankName = [dictionary objectForKey:@"bankName"];
        self.bankIcon = [dictionary objectForKey:@"bankIcon"];
    }
    return self;
}

+ (instancetype)flagWithDictionary:(NSDictionary *)dictionary{
    return [[self alloc] initWithDictionary:dictionary];
}



@end
